const style = document.createElement('style');
style.setAttribute('id', 'myStyle');
style.innerHTML = `body { background-color: lightblue; }`;
document.head.appendChild(style);

document.getElementById('myStyle');